﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp10
{
    public class Linq
    {
        public double num1;
        public double num2;
        public Linq (double num1,double num2)
        {
            this.num1 = num1;
            this.num2 = num2;
        }
        public void Addition()
        {
            double sum = this.num1 + this.num2;
            Console.WriteLine("和" + sum);
        }
        public void Subtraction()
        {
            double difference = this.num1 - this.num2;
            Console.WriteLine("差" + difference );
        }
        public void Multiplication()
        {
            double product = this.num1 * this.num2;
            Console.WriteLine("积" + product );
        }
        public void Division()
        {
            double quotient = this.num1 / this.num2;
            Console.WriteLine("商" + quotient );
        }
    }
}
